package com.developer.platform.infrastructure.error;

import com.veeker.core.enums.ErrorType;

/**
 * @author ：qiaoliang
 * @date ：2020-11-02
 */
public enum MenuErrorType implements ErrorType {
    DELETE_PARENT_IS_NOT_NULL_ERROR("请删除菜单下的子级后重新操作！");

    private final int status;

    private final String message;

    MenuErrorType(String message) {
        this.status = 409;
        this.message = message;
    }

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
